package com.caiyouxi.app.controller;

import com.caiyouxi.app.model.AppConfigBean;
import com.caiyouxi.app.service.AppConfigService;
import com.caiyouxi.common.bean.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("app_config")
public class AppConfigController {
    @Autowired
    private AppConfigService service;

    //app_config表删除
    @RequestMapping("delete_appConfig")
    public ResData delete_appConfig(@RequestBody AppConfigBean bean){
        return service.delete_appConfig(bean);
    }

    //app_config表新增
    @RequestMapping("insert_appConfig")
    public ResData insert_appConfig(@RequestBody AppConfigBean bean){
        return service.insert_appConfig(bean);
    }

    //app_config表更新
    @RequestMapping("update_appConfig")
    public ResData update_appConfig(@RequestBody AppConfigBean bean){
        return service.update_appConfig(bean);
    }


    //查询所有app_config
    @RequestMapping("select_appconfig_list")
    public ResData select_appconfig_list(@RequestBody AppConfigBean bean){
        return service.select_appconfig_list(bean);
    }

    /**
     * sdk/user/get_app_config  获得单条 app_config信息
     * @param app_id
     * */
}
